<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
	<TITLE>eSurvey - Registro de nuevo usuario</TITLE>
	<LINK href="styles/general.css" type="text/css" rel="stylesheet">
	<LINK href="styles/register.css" type="text/css" rel="stylesheet">
	<SCRIPT src="jquery/jquery.js" type="text/javascript"></SCRIPT>  
	<SCRIPT src="jquery/jquery.validate.js" type="text/javascript"></SCRIPT>
	<SCRIPT src="js/global.js" type="text/javascript"></SCRIPT>
	<SCRIPT src="js/validation.js" type="text/javascript"></SCRIPT>
	<SCRIPT src="js/validationRegister.js" type="text/javascript"></SCRIPT>
</HEAD>
<%
	if (session.getAttribute("username") != null) {
		response.sendRedirect("userMySurveys.jsp");
	} else {
%>
<BODY onload="javascript: checkURL();">
	<DIV id="general">
		<DIV id="header">
			<%@ include file="header.jsp" %>
		</DIV>
		<DIV id="content">
			<DIV id="main">
				<H1>Registro de nuevo usuario:</H1>
				<FORM id="signupForm" action="saveUser.jsp" method="post">
					<UL>
						<LI class="info">
							Por favor, introduzca sus datos mediante el siguiente formulario.
						</LI>
						<LI class="warning">
							<DIV id="warning">
							</DIV>
						</LI>
						<LI class="warningJquery">
							<DIV id="warningJquery">
							</DIV>
						</LI>
							<LI>
								<DIV id="divUser">
									<LABEL id="lblUser" class="label" for="user">
										Usuario: <SPAN class="req">*</SPAN>
									</LABEL>
									<INPUT id="user" name="user" type="text" class="textfieldMedium" tabindex="1">
								</DIV>
							</LI>
							<LI>
								<DIV id="divPass">
									<LABEL id="lblPass" class="label" for="pass">
										Contrase&ntilde;a: <SPAN class="req">*</SPAN>
									</LABEL>
									<INPUT id="pass" name="pass" type="password" class="textfieldMedium" tabindex="2">
								</DIV>
							</LI>
							<LI>
								<DIV id="divPassConfirm">
									<LABEL id="lblPassConfirm" class="label" for="passConfirm">
										Confirme contrase&ntilde;a: <SPAN class="req">*</SPAN>
									</LABEL>
									<INPUT id="passConfirm" name="passConfirm" type="password" class="textfieldMedium" tabindex="3">
								</DIV>
							</LI>
						<FIELDSET CLASS="personalData"><LEGEND>Datos personales</LEGEND>
							<LI>
								<DIV id="divName">
									<LABEL id="lblName" class="label" for="name">
										Nombre: <SPAN class="req">*</SPAN>
									</LABEL>
									<INPUT id="name" name="name" type="text" class="textfieldLarge" tabindex="4">
								</DIV>
							</LI>
							<LI>
								<DIV id="divSurname">
									<LABEL id="lblSurname" class="label" for="surname">
										Apellidos: <SPAN class="req">*</SPAN>
									</LABEL>
									<INPUT id="surname" name="surname" type="text" class="textfieldLarge" tabindex="5">
								</DIV>
							</LI>
							<LI>
								<DIV id="divEmail">
									<LABEL id="lblEmail" class="label" for="email">
										Email: <SPAN class="req">*</SPAN>
									</LABEL>
									<INPUT id="email" name="email" type="text" class="textfieldLarge" tabindex="6">
							</LI>
						</FIELDSET>
						<FIELDSET CLASS="restorePass"><LEGEND>Pregunta secreta</LEGEND>
							<LI>
								<DIV id="divSecretQuestion">
									<LABEL id="lblSecretQuestion" class="label" for="secretQuestion">
										Pregunta secreta: <SPAN class="req">*</SPAN>
									</LABEL>
									<INPUT id="secretQuestion" name="secretQuestion" type="text" class="textfieldLarge" tabindex="7">
							</LI>
							<LI>
								<DIV id="divSecretAnswer">
									<LABEL id="lblSecretAnswer" class="label" for="secretAnswer">
										Respuesta: <SPAN class="req">*</SPAN>
									</LABEL>
									<INPUT id="secretAnswer" name="secretAnswer" type="text" class="textfieldLarge" tabindex="8">
							</LI>
						</FIELDSET>
						<LI>
							<DIV id="divFormButtons">
								<INPUT type="submit" class="button" tabindex="9" value="Registrar">
								<A href="index.jsp"><INPUT type="button" class="button" tabindex="10" value="Cancelar"></A>
							</DIV>
						</LI>
					</UL>
				</FORM>
			</DIV>
			<DIV id="nav">
				<%@ include file="mainTabs.html" %>
			</DIV>
		</DIV>
		<DIV id="footer">
			<%@ include file="footer.jsp" %>
		</DIV>
	</DIV>
</BODY>
<%
	}
%>
</HTML>
